﻿using UnityEngine;

public class PackerGUI : ScriptableObject
{
    public GUIStyle[] styles;

    public GUIStyle GetStyle(string name)
    {
        if (styles == null)
            return GUIStyle.none;

        foreach (var style in styles)
        {
            if (style.name.Equals(name))
                return style;
        }
        return GUIStyle.none;
    }
}
